package com.hqyj.service;

import com.hqyj.pojo.TbLetter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.pojo.TbLetterEmail;
import com.hqyj.pojo.TbRepair;

import java.util.HashMap;

/**
 * <p>
 * 信件表 服务类
 * </p>
 *
 * @author gp
 * @since 2021-09-25
 */
public interface TbLetterService {
    //新增
    HashMap<String, Object> add(TbLetter tbLetter);

    //修改
    HashMap<String, Object> update(TbLetter tbLetter);

    //删除
    HashMap<String, Object> del(Integer id);

    //查询
    HashMap<String, Object> list(TbLetter tbLetter);

    //根据发信人查询信件
    HashMap<String, Object> letterFrom(String ownerName);

    HashMap<String, Object> sendEmail(TbLetterEmail email);
}
